package com.os;

import java.awt.Point;
import java.util.HashMap;

/**
 *
 * @author Sajarwo Anggai
 */
public class ObjectSprite {

    public static String LEFT_SPRITE = "left";
    public static String RIGHT_SPRITE = "right";
    public static String UP_SPRITE = "up";
    public static String DOWN_SPRITE = "down";
    public static String OTHER_SPRITE = "other";
    private boolean status;
    private String name = "";
    private HashMap attribute;
    private Point position;

    public ObjectSprite(String name, boolean status) {
        this.name = name;
        this.status = status;
        attribute = new HashMap();        
    }

    public HashMap getAllAttribute() {
        return attribute;
    }

    public OSAttribute getAttribute(String name) {
        return (OSAttribute) attribute.get(name);
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public boolean isCharacter() {
        return status;
    }

    public String toString() {
        return name;
    }

    public void setCharacter(boolean status) {
        this.status = status;
    }

    public void setPosition(Point position) {
        this.position = position;
    }

    public Point getPosition() {
        return position;
    }

    
}
